@if (count($errors) > 0)
<div class="modal" tabindex="-1" role="dialog" id="modal_message">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">智祥CMS--友情提示</h5>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-2">
                        <i class="fa fa-info-circle fa-4x"></i>
                    </div>
                    <div class="col-sm-9">
                        @foreach ($errors->all() as $error)
                            {{ $error }}<br>
                        @endforeach
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<script>
    require(['jquery','bootstrap'], function ($) {
        $('#modal_message').modal('show');
        setTimeout(function () {
            $('#modal_message').modal('hide');
        }, 3000);
    })
</script>
@endif